<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<img src="${basePath }/file/download?path=E:/file/miss/2017/12/21/1513839087989psb.jpg_digest_.jpg" alt="" class="queImg">
<h3 class="question">${obj.num }.${obj.subjectTitle }</h3>
<c:forEach items="${list }" var="item" >
	<c:if test="${not empty obj.detailsA && item eq obj.detailsA }">
		<c:set var="A" value="true"/>
	</c:if>
	<c:if test="${not empty obj.detailsB && item eq obj.detailsB }">
		<c:set var="B" value="true"/>
	</c:if>
	<c:if test="${not empty obj.detailsC && item eq obj.detailsC }">
		<c:set var="C" value="true"/>
	</c:if>
	<c:if test="${not empty obj.detailsD && item eq obj.detailsD }">
		<c:set var="D" value="true"/>
	</c:if>
	<c:if test="${not empty obj.detailsE && item eq obj.detailsE }">
		<c:set var="E" value="true"/>
	</c:if>
	<c:if test="${not empty obj.detailsF && item eq obj.detailsF }">
		<c:set var="F" value="true"/>
	</c:if>
	<c:if test="${not empty obj.detailsH && item eq obj.detailsH }">
		<c:set var="G" value="true"/>
	</c:if>
</c:forEach>
<!--单项选择-->
<ul class="items">
	<c:if test="${obj.subjectType eq 1 }">
		<c:if test="${not empty obj.detailsA }">                                                                   
			<li class="item"><input type="radio" class="answer-input-class" <c:if test="${A}">checked</c:if> name="answer" value="${ obj.detailsA}" ><label for="">A、${ obj.detailsA}</label></li>
		</c:if>                                                                                                    
		<c:if test="${not empty obj.detailsB }">                                                                   
			<li class="item"><input type="radio" class="answer-input-class" <c:if test="${B}">checked</c:if> name="answer" value="${ obj.detailsB}" ><label for="">B、${ obj.detailsB}</label></li>
		</c:if>                                                                                                    
		<c:if test="${not empty obj.detailsC }">                                                                   
			<li class="item"><input type="radio" class="answer-input-class" <c:if test="${C}">checked</c:if> name="answer" value="${ obj.detailsC}" ><label for="">C、${ obj.detailsC}</label></li>
		</c:if>                                                                                                    
		<c:if test="${not empty obj.detailsD }">                                                                   
			<li class="item"><input type="radio" class="answer-input-class" <c:if test="${D}">checked</c:if> name="answer" value="${ obj.detailsD}" ><label for="">D、${ obj.detailsD}</label></li>
		</c:if>                                                                                                    
		<c:if test="${not empty obj.detailsE }">                                                                   
			<li class="item"><input type="radio" class="answer-input-class" <c:if test="${E}">checked</c:if> name="answer" value="${ obj.detailsE}" ><label for="">E、${ obj.detailsE}</label></li>
		</c:if>                                                                                                    
		<c:if test="${not empty obj.detailsF }">                                                                   
			<li class="item"><input type="radio" class="answer-input-class" <c:if test="${F}">checked</c:if> name="answer" value="${ obj.detailsF}" ><label for="">F、${ obj.detailsF}</label></li>
		</c:if>                                                                                                    
		<c:if test="${not empty obj.detailsH }">                                                                   
			<li class="item"><input type="radio" class="answer-input-class" <c:if test="${G}">checked</c:if> name="answer" value="${ obj.detailsH}" ><label for="">G、${ obj.detailsH}</label></li>
		</c:if>                                                                                                    
	</c:if>
</ul>
<!--多项选择-->
<ul class="items">
	<c:if test="${obj.subjectType eq 2 }">
		<c:if test="${not empty obj.detailsA }">
			<li class="item"><input type="checkbox" class="answer-input-class" <c:if test="${A}">checked</c:if> name="answer" value="${ obj.detailsA}" ><label for="">A、${ obj.detailsA}</label></li>
		</c:if>                                                                            
		<c:if test="${not empty obj.detailsB }">                                           
			<li class="item"><input type="checkbox" class="answer-input-class" <c:if test="${B}">checked</c:if> name="answer" value="${ obj.detailsB}" ><label for="">B、${ obj.detailsB}</label></li>
		</c:if>                                                                            
		<c:if test="${not empty obj.detailsC }">                                           
			<li class="item"><input type="checkbox" class="answer-input-class" <c:if test="${C}">checked</c:if> name="answer" value="${ obj.detailsC}" ><label for="">C、${ obj.detailsC}</label></li>
		</c:if>                                                                            
		<c:if test="${not empty obj.detailsD }">                                           
			<li class="item"><input type="checkbox" class="answer-input-class" <c:if test="${D}">checked</c:if> name="answer" value="${ obj.detailsD}" ><label for="">D、${ obj.detailsD}</label></li>
		</c:if>                                                                            
		<c:if test="${not empty obj.detailsE }">                                           
			<li class="item"><input type="checkbox" class="answer-input-class" <c:if test="${E}">checked</c:if> name="answer" value="${ obj.detailsE}" ><label for="">E、${ obj.detailsE}</label></li>
		</c:if>                                                                            
		<c:if test="${not empty obj.detailsF }">                                           
			<li class="item"><input type="checkbox" class="answer-input-class" <c:if test="${F}">checked</c:if> name="answer" value="${ obj.detailsF}" ><label for="">F、${ obj.detailsF}</label></li>
		</c:if>                                                                            
		<c:if test="${not empty obj.detailsH }">                                           
			<li class="item"><input type="checkbox" class="answer-input-class" <c:if test="${G}">checked</c:if> name="answer" value="${ obj.detailsH}" ><label for="">G、${ obj.detailsH}</label></li>
		</c:if>
	</c:if>
</ul>